﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000467 RID: 1127
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterRogueCsReq : IMessage<EnterRogueCsReq>, IMessage, IEquatable<EnterRogueCsReq>, IDeepCloneable<EnterRogueCsReq>, IBufferMessage
	{
		// Token: 0x17000E83 RID: 3715
		// (get) Token: 0x060032BC RID: 12988 RVA: 0x0008B7C8 File Offset: 0x000899C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterRogueCsReq> Parser
		{
			get
			{
				return EnterRogueCsReq._parser;
			}
		}

		// Token: 0x17000E84 RID: 3716
		// (get) Token: 0x060032BD RID: 12989 RVA: 0x0008B7CF File Offset: 0x000899CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterRogueCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E85 RID: 3717
		// (get) Token: 0x060032BE RID: 12990 RVA: 0x0008B7E1 File Offset: 0x000899E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterRogueCsReq.Descriptor;
			}
		}

		// Token: 0x060032BF RID: 12991 RVA: 0x0008B7E8 File Offset: 0x000899E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterRogueCsReq()
		{
		}

		// Token: 0x060032C0 RID: 12992 RVA: 0x0008B7F0 File Offset: 0x000899F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterRogueCsReq(EnterRogueCsReq other) : this()
		{
			this.areaId_ = other.areaId_;
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060032C1 RID: 12993 RVA: 0x0008B821 File Offset: 0x00089A21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterRogueCsReq Clone()
		{
			return new EnterRogueCsReq(this);
		}

		// Token: 0x17000E86 RID: 3718
		// (get) Token: 0x060032C2 RID: 12994 RVA: 0x0008B829 File Offset: 0x00089A29
		// (set) Token: 0x060032C3 RID: 12995 RVA: 0x0008B831 File Offset: 0x00089A31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x17000E87 RID: 3719
		// (get) Token: 0x060032C4 RID: 12996 RVA: 0x0008B83A File Offset: 0x00089A3A
		// (set) Token: 0x060032C5 RID: 12997 RVA: 0x0008B842 File Offset: 0x00089A42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x060032C6 RID: 12998 RVA: 0x0008B84B File Offset: 0x00089A4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterRogueCsReq);
		}

		// Token: 0x060032C7 RID: 12999 RVA: 0x0008B859 File Offset: 0x00089A59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterRogueCsReq other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060032C8 RID: 13000 RVA: 0x0008B898 File Offset: 0x00089A98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060032C9 RID: 13001 RVA: 0x0008B8F0 File Offset: 0x00089AF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060032CA RID: 13002 RVA: 0x0008B8F8 File Offset: 0x00089AF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060032CB RID: 13003 RVA: 0x0008B904 File Offset: 0x00089B04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.AreaId);
			}
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060032CC RID: 13004 RVA: 0x0008B95C File Offset: 0x00089B5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060032CD RID: 13005 RVA: 0x0008B9B4 File Offset: 0x00089BB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterRogueCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060032CE RID: 13006 RVA: 0x0008BA04 File Offset: 0x00089C04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060032CF RID: 13007 RVA: 0x0008BA10 File Offset: 0x00089C10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MonsterId = input.ReadUInt32();
					}
				}
				else
				{
					this.AreaId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040013EC RID: 5100
		private static readonly MessageParser<EnterRogueCsReq> _parser = new MessageParser<EnterRogueCsReq>(() => new EnterRogueCsReq());

		// Token: 0x040013ED RID: 5101
		private UnknownFieldSet _unknownFields;

		// Token: 0x040013EE RID: 5102
		public const int AreaIdFieldNumber = 1;

		// Token: 0x040013EF RID: 5103
		private uint areaId_;

		// Token: 0x040013F0 RID: 5104
		public const int MonsterIdFieldNumber = 12;

		// Token: 0x040013F1 RID: 5105
		private uint monsterId_;
	}
}
